package it.univpm.diiga.memorysim;
 
import it.univpm.diiga.memorysim.views.*;

import org.eclipse.ui.IFolderLayout;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

public class Perspective implements IPerspectiveFactory {

	public static IFolderLayout folder;
	public static IFolderLayout folder1;
	
	public void createInitialLayout(IPageLayout layout) {
		String editorArea = layout.getEditorArea();
		layout.setEditorAreaVisible(false);
		layout.addStandaloneView(SelectSimulation.ID,  false, IPageLayout.LEFT, 0.20f, editorArea);
		folder = layout.createFolder("messages", IPageLayout.TOP, 0.60f, editorArea);
		folder.addPlaceholder(Paginazione.ID + ":*");
		folder.addPlaceholder(Param.ID + ":*");
		folder.addPlaceholder(SequenceSimulation.ID + ":*");
		folder.addPlaceholder(Segmentazione.ID + ":*");
		folder.addPlaceholder(SequenceSimulationSeg.ID + ":*");
		folder.addPlaceholder(MemorySecondaryInitialSituation.ID + ":*");
		folder.addPlaceholder(OutputSimulation.ID + ":*");
		folder.addPlaceholder(OutputSimulationHDD.ID + ":*");
		folder.addPlaceholder(SegWthPag.ID + ":*");
		folder1 = layout.createFolder("report", IPageLayout.BOTTOM, 0.40f, editorArea);
		folder1.addPlaceholder(MemoryCentralInitialSituationDinamic.ID + ":*");
		folder1.addPlaceholder(MemoryCentralInitialSituation.ID + ":*");
		folder1.addPlaceholder(OutputTable.ID + ":*");
		folder1.addPlaceholder(OutputTableFile.ID + ":*");
		folder1.addPlaceholder(OutputListFile.ID + ":*");
	}

}
